package com.example.model;

import java.io.Serializable;

/**
 * users
 * @author 
 */
public class Users implements Serializable {
    /**
     * 用户名
     */
    private String usersname;

    /**
     * 用户ID
     */
    private String usersid;

    /**
     * 密码
     */
    private String userspassword;

    /**
     * 联系方式
     */
    private String phone;

    private static final long serialVersionUID = 1L;


    public String getUsersname() {
        return usersname;
    }

    public void setUsersname(String usersname) {
        this.usersname = usersname;
    }

    public String getUsersid() {
        return usersid;
    }

    public void setUsersid(String usersid) {
        this.usersid = usersid;
    }

    public String getUserspassword() {
        return userspassword;
    }

    public void setUserspassword(String userspassword) {
        this.userspassword = userspassword;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Users other = (Users) that;
        return (this.getUsersname() == null ? other.getUsersname() == null : this.getUsersname().equals(other.getUsersname()))
            && (this.getUsersid() == null ? other.getUsersid() == null : this.getUsersid().equals(other.getUsersid()))
            && (this.getUserspassword() == null ? other.getUserspassword() == null : this.getUserspassword().equals(other.getUserspassword()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUsersname() == null) ? 0 : getUsersname().hashCode());
        result = prime * result + ((getUsersid() == null) ? 0 : getUsersid().hashCode());
        result = prime * result + ((getUserspassword() == null) ? 0 : getUserspassword().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", usersname=").append(usersname);
        sb.append(", usersid=").append(usersid);
        sb.append(", userspassword=").append(userspassword);
        sb.append(", phone=").append(phone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}